<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>	
<%@page import="net.chenpu.gae.proxy.ProxyServlet"%><html>
<%
String prefix = "'http://";
if (request.getServerPort() == 80) {
	prefix += request.getServerName();
} else {
	prefix += request.getServerName() + ":"
			+ request.getServerPort();
}
prefix += "/http/'";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Web Proxy</title>
<script language="JavaScript">
		function openUrl(){
			window.open(<%=prefix%> + document.getElementById('urlText').value);
		}
	</script>
<style type="text/css">
#urlText {
	width: 400px
}
</style>
</head>
<body>
<div>http:// <input type="text" id="urlText" /> <input
	type="button" onclick="javascript:openUrl()" value="Open" /></div>
</body>
</html>
